﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class User_Admin_DefineSteps : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        try
        {
            DataAccess.TblStepsAdvisor s = new DataAccess.TblStepsAdvisor();
            s.Name = txtname.Text;
            s.Priority = Convert.ToInt32(txtperiority.Text);
            s.Save();
        }
        catch 
        {

        }
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        try
        {
            DataAccess.TblStepsSurveyor s = new DataAccess.TblStepsSurveyor();
            s.Name = TextBox1.Text;
            s.Priority = Convert.ToInt32(TextBox2.Text);

            s.Save();
        }
        catch
        {

        }
    }
}